package com.jxc.dao;

import java.util.List;

import com.jxc.entity.TbRole;

public interface TbRoleDAO {

	// property constants
	public static final String ROLE_COMPETENCE = "roleCompetence";
	public static final String NAME = "name";

	public abstract void save(TbRole transientInstance);

	public abstract void delete(TbRole persistentInstance);

	public abstract TbRole findById(java.lang.Integer id);

	public abstract List findByExample(TbRole instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByRoleCompetence(Object roleCompetence);

	public abstract List findByName(Object name);
	
	public abstract List findPageAll(final int start,final int limit);

	public abstract List findAll();

	public abstract TbRole merge(TbRole detachedInstance);

	public abstract void attachDirty(TbRole instance);

	public abstract void attachClean(TbRole instance);

	public abstract int totalRecord();//取统计记录
	public void delete(Integer id);
	
	public abstract List findByIdByWhere(String strWhere);
}